#include "gui_label.h"

Label::Label(const Font *font, int X, int Y, std::wstring text) : Widget()
{
	SetFont(*font);
	SetText(text);
	SetPos(X,Y);
	SetSize(_font->GetWidth(text),_font->GetHeight());
	_align = LEFT_TOP;
}

Label::~Label()
{
}

void Label::Draw()
{
	_font->PrintRect(_area.position.x, _area.position.y,
		_area.size.x, _area.size.y, _align, _text);
}